package com.sam.test;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TabHost;

import com.sam.jifenbao.BaseHeaderActivity;
import com.sam.jifenbao.R;
import com.sam.widget.headerBar.BaseTitleBar;

public class ActivityTestTabwidget extends BaseHeaderActivity {
    private TabHost tabHost;
    private BaseTitleBar baseTitleBar;

    private static final String TAB_TAG_1 = "one";
    private static final String TAB_TAG_2 = "two";
    private static final String TAB_TAG_3 = "three";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_tabwidget);
        findView();
        initView();
    }

    @Override
    protected void findView() {
        tabHost = (TabHost) findViewById(android.R.id.tabhost);
        tabHost.setup();
        tabHost.addTab(tabHost.newTabSpec(TAB_TAG_1).setContent(R.id.v1).setIndicator("标签1"));
        tabHost.addTab(tabHost.newTabSpec(TAB_TAG_2).setContent(R.id.v2).setIndicator("标签2"));
        tabHost.addTab(tabHost.newTabSpec(TAB_TAG_3).setContent(R.id.v3).setIndicator("标签3"));
    }

    @Override
    protected void initView() {

    }
}
